<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sn" readonly data-rule="required" class="form-control" name="row[sn]" type="text"
                value="{$row.sn|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Account')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-account" readonly class="form-control" name="row[account]" type="text"
                value="{$row.account|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" min="0" readonly class="form-control" step="0.01" name="row[money]" type="number"
                value="{$row.money|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User.username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" min="0" readonly class="form-control" type="text"
                value="{$row.user.username|htmlentities}">

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-type" min="0" readonly class="form-control" type="text"
                value="{$typeList[$row['type']]|htmlentities}">
        </div>
    </div>
    <div class="{$row['type']==3?'':'hide'}">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('提现银行')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-user_id" min="0" readonly class="form-control" type="text"
                    value="{$row.bank.bank_name|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('持卡人')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-user_id" min="0" readonly class="form-control" type="text"
                    value="{$row.bank.cardholder|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('网点')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-user_id" min="0" readonly class="form-control" type="text"
                    value="{$row.bank.outlets|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('身份证')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-user_id" min="0" readonly class="form-control" type="text"
                    value="{$row.bank.id_card|htmlentities}">
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="stateList" item="vo"}
                <label for="row[state]-{$key}"><input id="row[state]-{$key}" {if $row.state!=1} disabled {/if}
                        name="row[state]" type="radio" value="{$key}" {in name="key" value="$row.state" }checked{/in} />
                    {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('审核备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-content" class="form-control" {if $row.state!=1} readonly {/if} name="row[content]" type="text"
                value="{$row.content|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mark" class="form-control" readonly name="row[mark]" type="text"
                value="{$row.mark|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Handling_charge')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-handling_charge" min="0" readonly class="form-control" step="0.01" name="row[handling_charge]"
                type="number" value="{$row.handling_charge|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Amount_received')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-amount_received" min="0" readonly class="form-control" step="0.01" name="row[amount_received]"
                type="number" value="{$row.amount_received|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <!-- <img src="{$row.image|htmlentities}" width="150" alt=""> -->
                <a href="{$row.image|htmlentities}" data-url="{$row.image|htmlentities}" target="_blank"
                    class="thumbnail"><img src="{$row.image|htmlentities}" width="150"
                        onerror="this.src='/admin/ajax/icon?suffix=jpg';this.onerror=null;" class="img-responsive"></a>
                <!-- <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span> -->
            </div>
            <!-- <ul class="row list-inline faupload-preview" id="p-image"></ul> -->
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>